home *** CD-ROM | disk | FTP | other *** search
- #define FLEX_COMPRESSED
- /* A lexical scanner generated by flex */
-
- /* scanner skeleton version:
- * $Header: flex.skel,v 2.0 89/06/20 15:49:46 vern Locked $
- */
-
- #include <stdio.h>
-
- #define FLEX_SCANNER
-
- /* amount of stuff to slurp up with each read */
- #ifndef YY_READ_BUF_SIZE
- #define YY_READ_BUF_SIZE 8192
- #endif
-
- #ifndef YY_BUF_SIZE
- #define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of input buffer */
- #endif
-
- /* returned upon end-of-file */
- #define YY_END_TOK 0
-
- /* copy whatever the last rule matched to the standard output */
-
- #define ECHO fputs( yytext, yyout )
-
- /* gets input and stuffs it into "buf". number of characters read, or YY_NULL,
- * is returned in "result".
- */
- #define YY_INPUT(buf,result,max_size) \
- if ( (result = read( fileno(yyin), buf, max_size )) < 0 ) \
- YY_FATAL_ERROR( "read() in flex scanner failed" );
- #define YY_NULL 0
- #define yyterminate() return ( YY_NULL )
-
- /* report a fatal error */
- #define YY_FATAL_ERROR(msg) \
- { \
- fputs( msg, stderr ); \
- putc( '\n', stderr ); \
- exit( 1 ); \
- }
-
- /* default yywrap function - always treat EOF as an EOF */
- #define yywrap() 1
-
- /* enter a start condition. This macro really ought to take a parameter,
- * but we do it the disgusting crufty way forced on us by the ()-less
- * definition of BEGIN
- */
- #define BEGIN yy_start = 1 + 2 *
-
- /* action number for EOF rule of a given start state */
- #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
-
- /* special action meaning "start processing a new file" */
- #define YY_NEW_FILE goto new_file
-
- /* default declaration of generated scanner - a define so the user can
- * easily add parameters
- */
- #ifdef __STDC__
- #define YY_DECL int yylex( void )
- #else
- #define YY_DECL int yylex()
- #endif
-
- /* code executed at the end of each rule */
- #define YY_BREAK break;
-
- #define YY_END_OF_BUFFER_CHAR 0
-
- /* done after the current pattern has been matched and before the
- * corresponding action - sets up yytext
- */
- #define YY_DO_BEFORE_ACTION \
- yytext = yy_bp; \
- yy_hold_char = *yy_cp; \
- *yy_cp = '\0'; \
- yy_c_buf_p = yy_cp;
-
- /* returns the length of the matched text */
- #define yyleng (yy_cp - yy_bp)
-
- #define EOB_ACT_RESTART_SCAN 0
- #define EOB_ACT_END_OF_FILE 1
- #define EOB_ACT_LAST_MATCH 2
-
- /* return all but the first 'n' matched characters back to the input stream */
- #define yyless(n) \
- { \
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
- yy_c_buf_p = yy_cp = yy_bp + n; \
- YY_DO_BEFORE_ACTION; /* set up yytext again */ \
- }
-
- #define unput(c) yyunput( c, yy_bp )
-
- #define YY_USER_ACTION
-
- FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
- char *yytext;
-
- #ifndef __STDC__
- #define const
- #endif
-
- # line 1 "scan.l"
- #define INITIAL 0
- /* scan.l - scanner for flex input */
- /*
- * Copyright (c) 1989 The Regents of the University of California.
- * All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Vern Paxson.
- *
- * The United States Government has rights in this work pursuant to
- * contract no. DE-AC03-76SF00098 between the United States Department of
- * Energy and the University of California.
- *
- * Redistribution and use in source and binary forms are permitted
- * provided that the above copyright notice and this paragraph are
- * duplicated in all such forms and that any documentation,
- * advertising materials, and other materials related to such
- * distribution and use acknowledge that the software was developed
- * by the University of California, Berkeley. The name of the
- * University may not be used to endorse or promote products derived
- * from this software without specific prior written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
- # line 28 "scan.l"
- #include "flexdef.h"
- #include "parse.h"
-
- #ifndef lint
- static char copyright[] =
- "@(#) Copyright (c) 1989 The Regents of the University of California.\n";
- static char CR_continuation[] = "@(#) All rights reserved.\n";
-
- static char rcsid[] =
- "@(#) $Header: /usr4/rock/system/pisces/flex/RCS/scan.l,v 1.1 90/05/15 13:18:34 neath Exp $ (LBL)";
- #endif
-
- #define ACTION_ECHO fprintf( temp_action_file, "%s", yytext )
- #define MARK_END_OF_PROLOG fprintf( temp_action_file, "%%%% end of prolog\n" );
-
- #undef YY_DECL
- #define YY_DECL \
- int flexscan()
-
- #define RETURNCHAR \
- yylval = yytext[0]; \
- return ( CHAR );
-
- #define RETURNNAME \
- (void) strcpy( nmstr, yytext ); \
- return ( NAME );
-
- #define PUT_BACK_STRING(str, start) \
- for ( i = strlen( str ) - 1; i >= start; --i ) \
- unput(str[i])
-
- #define CHECK_REJECT(str) \
- if ( all_upper( str ) ) \
- reject = true;
-
- #define CHECK_YYMORE(str) \
- if ( all_lower( str ) ) \
- yymore_used = true;
- #define SECT2 1
- #define SECT2PROLOG 2
- #define SECT3 3
- #define CODEBLOCK 4
- #define PICKUPDEF 5
- #define SC 6
- #define CARETISBOL 7
- #define NUM 8
- #define QUOTE 9
- #define FIRSTCCL 10
- #define CCL 11
- #define ACTION 12
- #define RECOVER 13
- #define BRACEERROR 14
- #define C_COMMENT 15
- #define C_COMMENT_2 16
- #define ACTION_COMMENT 17
- #define ACTION_STRING 18
- #define PERCENT_BRACE_ACTION 19
- #define USED_LIST 20
- # line 83 "scan.l"
- #define YY_END_OF_BUFFER 116
- typedef int yy_state_type;
- static const short int yy_accept[317] =
- { 0,
- 0, 0, 0, 0, 0, 0, 114, 114, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 116, 16, 7, 15, 13, 1, 14, 16,
- 16, 16, 12, 58, 50, 51, 43, 58, 57, 41,
- 58, 58, 58, 50, 39, 58, 57, 42, 115, 37,
- 114, 114, 25, 26, 25, 25, 25, 25, 28, 27,
- 29, 64, 115, 60, 61, 63, 65, 79, 80, 77,
- 76, 78, 66, 68, 67, 66, 72, 71, 72, 72,
-
- 74, 74, 74, 75, 90, 95, 94, 96, 96, 91,
- 91, 91, 88, 89, 115, 30, 82, 81, 19, 21,
- 20, 104, 106, 105, 98, 100, 99, 107, 109, 110,
- 111, 86, 86, 87, 86, 86, 86, 86, 35, 32,
- 31, 35, 35, 7, 13, 1, 14, 0, 2, 0,
- 8, 4, 0, 5, 0, 3, 12, 50, 51, 0,
- 0, 46, 0, 0, 0, 112, 112, 45, 44, 45,
- 0, 50, 39, 0, 0, 0, 54, 49, 0, 37,
- 36, 114, 114, 25, 25, 25, 25, 25, 28, 27,
- 62, 63, 76, 113, 113, 69, 70, 73, 90, 0,
-
- 93, 0, 92, 91, 91, 91, 0, 30, 19, 17,
- 104, 102, 98, 97, 107, 108, 86, 86, 86, 83,
- 86, 86, 86, 35, 32, 35, 35, 0, 8, 8,
- 0, 0, 0, 0, 6, 0, 47, 0, 48, 0,
- 55, 0, 112, 45, 45, 56, 40, 0, 47, 0,
- 40, 0, 54, 25, 25, 25, 22, 0, 113, 91,
- 91, 0, 18, 0, 103, 83, 83, 86, 86, 35,
- 35, 0, 11, 8, 0, 0, 0, 0, 6, 0,
- 0, 25, 25, 91, 91, 86, 86, 35, 35, 0,
- 0, 9, 0, 0, 25, 25, 91, 91, 86, 86,
-
- 35, 35, 4, 0, 0, 23, 24, 84, 85, 84,
- 85, 33, 34, 10, 53, 0
- } ;
-
- static const char yy_ec[128] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 1, 4, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 5, 1, 6, 7, 8, 9, 1, 10, 11,
- 11, 12, 11, 13, 14, 11, 15, 16, 16, 16,
- 16, 16, 16, 16, 16, 16, 16, 1, 1, 17,
- 1, 18, 11, 1, 1, 1, 1, 1, 19, 20,
- 1, 1, 1, 1, 1, 1, 1, 1, 21, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 22, 23, 24, 25, 26, 1, 27, 26, 28, 29,
-
- 30, 26, 26, 26, 26, 31, 26, 26, 32, 33,
- 34, 26, 26, 35, 36, 37, 38, 26, 26, 39,
- 40, 26, 41, 42, 43, 1, 1
- } ;
-
- static const char yy_meta[44] =
- { 0,
- 1, 2, 3, 2, 2, 4, 1, 1, 1, 5,
- 1, 6, 1, 7, 5, 7, 1, 1, 1, 1,
- 1, 1, 8, 9, 1, 10, 10, 10, 10, 10,
- 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
- 5, 1, 11
- } ;
-
- static const short int yy_base[378] =
- { 0,
- 0, 43, 85, 126, 632, 631, 599, 598, 166, 204,
- 101, 107, 244, 0, 575, 574, 120, 137, 92, 116,
- 141, 151, 158, 205, 287, 0, 595, 594, 113, 114,
- 89, 159, 167, 172, 174, 175, 328, 329, 352, 0,
- 186, 394, 596, 1312, 116, 1312, 0, 207, 1312, 592,
- 392, 582, 0, 1312, 400, 1312, 1312, 212, 1312, 576,
- 569, 575, 427, 466, 1312, 581, 577, 1312, 585, 0,
- 584, 1312, 0, 1312, 0, 556, 545, 541, 0, 218,
- 1312, 1312, 1312, 1312, 558, 0, 1312, 1312, 1312, 1312,
- 566, 1312, 1312, 1312, 1312, 565, 1312, 1312, 562, 563,
-
- 1312, 0, 560, 1312, 0, 1312, 1312, 135, 563, 0,
- 544, 533, 1312, 1312, 569, 1312, 1312, 1312, 0, 1312,
- 556, 0, 1312, 555, 0, 1312, 554, 0, 1312, 1312,
- 0, 0, 334, 1312, 525, 0, 537, 526, 0, 340,
- 1312, 535, 524, 344, 0, 408, 1312, 560, 1312, 557,
- 556, 523, 402, 1312, 180, 1312, 0, 442, 1312, 518,
- 555, 1312, 538, 90, 136, 1312, 540, 0, 1312, 495,
- 144, 537, 1312, 411, 213, 403, 0, 1312, 552, 0,
- 1312, 551, 1312, 0, 0, 522, 519, 577, 0, 415,
- 1312, 0, 534, 1312, 533, 1312, 1312, 1312, 0, 327,
-
- 1312, 0, 1312, 0, 517, 515, 542, 1312, 0, 541,
- 0, 540, 0, 1312, 0, 1312, 0, 474, 494, 592,
- 0, 505, 488, 0, 419, 488, 486, 514, 0, 513,
- 488, 476, 483, 509, 1312, 507, 1312, 504, 1312, 485,
- 1312, 317, 489, 0, 0, 1312, 1312, 215, 412, 422,
- 1312, 429, 0, 474, 469, 630, 1312, 499, 485, 470,
- 465, 495, 1312, 494, 1312, 645, 0, 466, 461, 464,
- 459, 489, 1312, 488, 455, 453, 457, 482, 1312, 462,
- 464, 449, 439, 445, 437, 422, 414, 420, 405, 402,
- 406, 1312, 404, 101, 379, 378, 363, 317, 187, 143,
-
- 109, 112, 1312, 70, 76, 0, 0, 0, 0, 0,
- 0, 0, 0, 1312, 1312, 1312, 685, 696, 707, 718,
- 729, 740, 751, 762, 773, 784, 795, 806, 817, 828,
- 839, 850, 855, 865, 876, 881, 891, 902, 913, 924,
- 935, 946, 957, 968, 973, 983, 988, 998, 1009, 1020,
- 1031, 1040, 1045, 1055, 1066, 1077, 1088, 1099, 1110, 1121,
- 1126, 1136, 1147, 1158, 1169, 1180, 1190, 1201, 1212, 1223,
- 1234, 1245, 1256, 1267, 1278, 1289, 1300
- } ;
-
- static const short int yy_def[378] =
- { 0,
- 316, 316, 317, 317, 318, 318, 319, 319, 320, 320,
- 321, 321, 316, 13, 322, 322, 323, 323, 324, 324,
- 325, 325, 326, 326, 316, 25, 327, 327, 322, 322,
- 328, 328, 329, 329, 330, 330, 331, 331, 316, 39,
- 332, 332, 316, 316, 316, 316, 333, 316, 316, 334,
- 335, 316, 336, 316, 316, 316, 316, 316, 316, 316,
- 337, 338, 339, 340, 316, 316, 316, 316, 341, 342,
- 343, 316, 344, 316, 345, 345, 345, 344, 346, 316,
- 316, 316, 316, 316, 316, 347, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 338, 316, 316, 348, 349,
-
- 316, 350, 338, 316, 351, 316, 316, 352, 316, 353,
- 353, 353, 316, 316, 354, 316, 316, 316, 355, 316,
- 316, 356, 316, 316, 357, 316, 316, 358, 316, 316,
- 359, 360, 360, 316, 360, 361, 361, 361, 362, 316,
- 316, 362, 362, 316, 333, 316, 316, 334, 316, 316,
- 363, 316, 316, 316, 364, 316, 336, 316, 316, 316,
- 365, 316, 316, 337, 337, 316, 316, 366, 316, 366,
- 340, 340, 316, 340, 340, 367, 368, 316, 341, 342,
- 316, 343, 316, 344, 345, 345, 345, 369, 346, 316,
- 316, 347, 316, 316, 316, 316, 316, 316, 351, 352,
-
- 316, 352, 316, 353, 353, 353, 354, 316, 355, 370,
- 356, 371, 357, 316, 358, 316, 360, 360, 360, 372,
- 361, 361, 361, 362, 316, 362, 362, 373, 363, 374,
- 316, 316, 316, 364, 316, 375, 316, 365, 316, 316,
- 316, 337, 316, 366, 170, 316, 316, 340, 340, 367,
- 316, 367, 368, 345, 345, 369, 316, 376, 316, 353,
- 353, 370, 316, 371, 316, 372, 377, 361, 361, 362,
- 362, 373, 316, 374, 316, 316, 316, 375, 316, 316,
- 337, 345, 345, 353, 353, 361, 361, 362, 362, 316,
- 316, 316, 316, 337, 345, 345, 353, 353, 361, 361,
-
- 362, 362, 316, 316, 316, 345, 345, 353, 353, 361,
- 361, 362, 362, 316, 316, 0, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316
- } ;
-
- static const short int yy_nxt[1356] =
- { 0,
- 44, 45, 46, 45, 45, 44, 44, 44, 44, 44,
- 44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
- 44, 44, 44, 44, 44, 47, 47, 47, 47, 47,
- 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
- 44, 44, 44, 44, 48, 49, 48, 48, 44, 50,
- 44, 51, 44, 44, 44, 44, 44, 52, 44, 44,
- 44, 44, 44, 44, 44, 44, 44, 44, 53, 53,
- 53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
- 53, 53, 53, 44, 44, 44, 55, 56, 55, 55,
- 57, 120, 58, 315, 94, 59, 59, 95, 314, 59,
-
- 121, 60, 80, 81, 80, 80, 61, 62, 80, 81,
- 80, 80, 165, 241, 96, 117, 117, 144, 94, 144,
- 144, 95, 89, 165, 241, 63, 59, 64, 65, 64,
- 64, 57, 90, 58, 66, 91, 59, 59, 96, 89,
- 67, 313, 60, 83, 201, 312, 247, 61, 62, 90,
- 68, 242, 91, 83, 98, 118, 118, 202, 248, 164,
- 83, 120, 92, 99, 98, 100, 63, 59, 74, 123,
- 121, 102, 311, 99, 123, 100, 126, 126, 124, 92,
- 103, 104, 235, 124, 236, 127, 127, 140, 141, 140,
- 140, 75, 75, 75, 75, 75, 75, 75, 75, 75,
-
- 76, 75, 75, 75, 75, 77, 74, 83, 146, 147,
- 146, 146, 78, 162, 162, 247, 162, 247, 102, 190,
- 142, 190, 190, 310, 178, 143, 316, 103, 104, 75,
- 75, 75, 75, 75, 75, 75, 75, 75, 76, 75,
- 75, 75, 75, 77, 82, 82, 83, 82, 82, 82,
- 82, 82, 82, 82, 82, 82, 84, 82, 82, 82,
- 82, 85, 82, 82, 82, 82, 82, 82, 82, 86,
- 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
- 86, 86, 86, 86, 82, 82, 82, 105, 105, 106,
- 105, 105, 107, 105, 105, 105, 108, 105, 105, 105,
-
- 105, 109, 105, 105, 105, 105, 105, 105, 105, 105,
- 105, 105, 110, 110, 110, 110, 110, 110, 110, 110,
- 110, 111, 110, 110, 110, 110, 112, 113, 105, 114,
- 129, 129, 281, 130, 130, 218, 201, 218, 218, 165,
- 241, 225, 219, 225, 225, 144, 309, 144, 144, 202,
- 131, 131, 132, 133, 134, 133, 133, 132, 132, 132,
- 135, 132, 132, 132, 132, 132, 132, 132, 132, 132,
- 132, 132, 132, 132, 132, 132, 132, 136, 136, 136,
- 136, 136, 136, 136, 136, 136, 137, 136, 136, 136,
- 136, 138, 132, 132, 132, 140, 141, 140, 140, 308,
-
- 151, 158, 159, 158, 158, 251, 228, 307, 160, 146,
- 147, 146, 146, 247, 247, 306, 190, 252, 190, 190,
- 225, 305, 225, 225, 251, 248, 248, 152, 142, 153,
- 154, 251, 155, 143, 232, 304, 252, 233, 303, 302,
- 238, 161, 169, 158, 159, 158, 158, 301, 300, 299,
- 160, 249, 170, 170, 170, 170, 170, 170, 170, 170,
- 170, 170, 170, 170, 170, 170, 170, 172, 173, 172,
- 172, 298, 297, 296, 174, 218, 295, 218, 218, 294,
- 175, 293, 219, 161, 279, 292, 165, 241, 291, 290,
- 273, 273, 289, 288, 287, 286, 265, 263, 285, 284,
-
- 194, 257, 283, 282, 166, 280, 239, 176, 245, 279,
- 245, 235, 277, 276, 275, 273, 273, 271, 270, 269,
- 245, 245, 245, 245, 245, 245, 245, 245, 245, 245,
- 245, 245, 245, 245, 245, 268, 220, 246, 172, 173,
- 172, 172, 265, 263, 208, 174, 261, 260, 259, 193,
- 255, 175, 254, 183, 180, 243, 240, 239, 237, 231,
- 230, 228, 149, 227, 226, 223, 222, 220, 214, 212,
- 210, 208, 206, 205, 203, 167, 197, 195, 176, 257,
- 167, 193, 191, 188, 187, 186, 183, 180, 178, 177,
- 167, 165, 163, 156, 149, 316, 116, 116, 87, 87,
-
- 72, 72, 258, 258, 258, 258, 258, 258, 258, 258,
- 258, 258, 258, 258, 258, 258, 258, 267, 267, 267,
- 267, 267, 267, 267, 267, 267, 267, 267, 267, 267,
- 267, 267, 257, 70, 70, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 258, 258, 258, 258, 258,
- 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
- 267, 267, 267, 267, 267, 267, 267, 267, 267, 267,
- 267, 267, 267, 267, 267, 54, 54, 54, 54, 54,
- 54, 54, 54, 54, 54, 54, 69, 69, 69, 69,
-
- 69, 69, 69, 69, 69, 69, 69, 71, 71, 71,
- 71, 71, 71, 71, 71, 71, 71, 71, 73, 73,
- 73, 73, 73, 73, 73, 73, 73, 73, 73, 79,
- 79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
- 83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
- 83, 88, 88, 88, 88, 88, 88, 88, 88, 88,
- 88, 88, 93, 93, 93, 93, 93, 93, 93, 93,
- 93, 93, 93, 97, 97, 97, 97, 97, 97, 97,
- 97, 97, 97, 97, 101, 101, 101, 101, 101, 101,
- 101, 101, 101, 101, 101, 115, 115, 115, 115, 115,
-
- 115, 115, 115, 115, 115, 115, 119, 119, 119, 119,
- 119, 119, 119, 119, 119, 119, 119, 122, 122, 122,
- 122, 122, 122, 122, 122, 122, 122, 122, 125, 125,
- 125, 125, 125, 125, 125, 125, 125, 125, 125, 128,
- 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
- 139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
- 139, 145, 316, 316, 145, 148, 148, 148, 148, 148,
- 148, 148, 148, 148, 148, 148, 150, 150, 150, 150,
- 150, 150, 150, 150, 150, 150, 150, 157, 316, 316,
- 157, 164, 164, 316, 164, 164, 164, 164, 164, 316,
-
- 164, 164, 166, 166, 316, 166, 166, 166, 166, 166,
- 166, 166, 166, 168, 168, 316, 168, 168, 168, 168,
- 168, 168, 168, 168, 171, 171, 171, 171, 171, 171,
- 171, 171, 171, 171, 171, 179, 179, 179, 179, 179,
- 179, 179, 179, 179, 179, 179, 181, 316, 316, 181,
- 181, 181, 181, 181, 181, 181, 181, 182, 182, 182,
- 182, 182, 182, 182, 182, 182, 182, 182, 184, 184,
- 316, 184, 184, 184, 184, 184, 184, 316, 184, 185,
- 316, 316, 185, 189, 189, 316, 189, 189, 189, 189,
- 189, 189, 189, 189, 192, 316, 316, 192, 194, 194,
-
- 316, 194, 194, 194, 194, 194, 194, 194, 194, 196,
- 196, 316, 196, 196, 196, 196, 196, 196, 196, 196,
- 198, 198, 316, 198, 198, 198, 198, 198, 316, 198,
- 198, 199, 199, 316, 316, 316, 199, 199, 199, 199,
- 200, 200, 316, 200, 200, 200, 200, 200, 200, 200,
- 200, 204, 316, 316, 204, 207, 207, 207, 207, 207,
- 207, 207, 207, 207, 207, 207, 209, 209, 316, 209,
- 209, 316, 209, 209, 209, 209, 209, 211, 211, 316,
- 211, 211, 316, 211, 211, 211, 211, 211, 213, 213,
- 316, 213, 213, 316, 213, 213, 213, 213, 213, 215,
-
- 215, 316, 316, 215, 215, 215, 316, 215, 215, 215,
- 216, 216, 316, 216, 216, 216, 216, 216, 216, 216,
- 216, 217, 217, 316, 217, 217, 217, 217, 217, 217,
- 316, 217, 221, 316, 316, 221, 224, 316, 316, 224,
- 224, 224, 224, 224, 224, 224, 224, 229, 229, 316,
- 229, 229, 229, 229, 229, 229, 229, 229, 234, 234,
- 234, 234, 234, 234, 234, 234, 234, 234, 234, 238,
- 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
- 244, 244, 316, 244, 244, 244, 244, 244, 244, 244,
- 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
-
- 250, 253, 253, 316, 253, 253, 253, 253, 253, 253,
- 253, 253, 256, 256, 256, 256, 256, 256, 256, 256,
- 256, 256, 256, 262, 262, 262, 262, 262, 262, 262,
- 262, 262, 262, 262, 264, 264, 264, 264, 264, 264,
- 264, 264, 264, 264, 264, 266, 266, 316, 266, 266,
- 266, 266, 266, 266, 266, 266, 272, 272, 272, 272,
- 272, 272, 272, 272, 272, 272, 272, 274, 274, 274,
- 274, 274, 274, 274, 274, 274, 274, 274, 278, 278,
- 278, 278, 278, 278, 278, 278, 278, 278, 278, 258,
- 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
-
- 267, 267, 316, 267, 267, 267, 267, 267, 267, 267,
- 267, 43, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316
- } ;
-
- static const short int yy_chk[1356] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 3, 3, 3, 3,
- 3, 31, 3, 305, 19, 3, 3, 19, 304, 3,
-
- 31, 3, 11, 11, 11, 11, 3, 3, 12, 12,
- 12, 12, 164, 164, 19, 29, 30, 45, 20, 45,
- 45, 20, 17, 294, 294, 3, 3, 4, 4, 4,
- 4, 4, 17, 4, 4, 17, 4, 4, 20, 18,
- 4, 302, 4, 21, 108, 301, 171, 4, 4, 18,
- 4, 165, 18, 22, 21, 29, 30, 108, 171, 165,
- 23, 32, 17, 21, 22, 21, 4, 4, 9, 33,
- 32, 23, 300, 22, 34, 22, 35, 36, 33, 18,
- 23, 23, 155, 34, 155, 35, 36, 41, 41, 41,
- 41, 9, 9, 9, 9, 9, 9, 9, 9, 9,
-
- 9, 9, 9, 9, 9, 9, 10, 24, 48, 48,
- 48, 48, 10, 58, 58, 175, 58, 248, 24, 80,
- 41, 80, 80, 299, 175, 41, 248, 24, 24, 10,
- 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
- 10, 10, 10, 10, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
- 13, 13, 13, 13, 13, 13, 13, 25, 25, 25,
- 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
-
- 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
- 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
- 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
- 37, 38, 242, 37, 38, 133, 200, 133, 133, 242,
- 242, 140, 133, 140, 140, 144, 298, 144, 144, 200,
- 37, 38, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 42, 42, 42, 42, 297,
-
- 51, 55, 55, 55, 55, 176, 153, 296, 55, 146,
- 146, 146, 146, 174, 249, 295, 190, 176, 190, 190,
- 225, 293, 225, 225, 250, 174, 249, 51, 42, 51,
- 51, 252, 51, 42, 153, 291, 250, 153, 290, 289,
- 252, 55, 63, 158, 158, 158, 158, 288, 287, 286,
- 158, 174, 63, 63, 63, 63, 63, 63, 63, 63,
- 63, 63, 63, 63, 63, 63, 63, 64, 64, 64,
- 64, 285, 284, 283, 64, 218, 282, 218, 218, 281,
- 64, 280, 218, 158, 278, 277, 281, 281, 276, 275,
- 274, 272, 271, 270, 269, 268, 264, 262, 261, 260,
-
- 259, 258, 255, 254, 243, 240, 238, 64, 170, 236,
- 170, 234, 233, 232, 231, 230, 228, 227, 226, 223,
- 170, 170, 170, 170, 170, 170, 170, 170, 170, 170,
- 170, 170, 170, 170, 170, 222, 219, 170, 172, 172,
- 172, 172, 212, 210, 207, 172, 206, 205, 195, 193,
- 187, 172, 186, 182, 179, 167, 163, 161, 160, 152,
- 151, 150, 148, 143, 142, 138, 137, 135, 127, 124,
- 121, 115, 112, 111, 109, 103, 100, 99, 172, 188,
- 96, 91, 85, 78, 77, 76, 71, 69, 67, 66,
- 62, 61, 60, 52, 50, 43, 28, 27, 16, 15,
-
- 8, 7, 188, 188, 188, 188, 188, 188, 188, 188,
- 188, 188, 188, 188, 188, 188, 188, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 256, 6, 5, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 256, 256, 256, 256, 256,
- 256, 256, 256, 256, 256, 256, 256, 256, 256, 256,
- 266, 266, 266, 266, 266, 266, 266, 266, 266, 266,
- 266, 266, 266, 266, 266, 317, 317, 317, 317, 317,
- 317, 317, 317, 317, 317, 317, 318, 318, 318, 318,
-
- 318, 318, 318, 318, 318, 318, 318, 319, 319, 319,
- 319, 319, 319, 319, 319, 319, 319, 319, 320, 320,
- 320, 320, 320, 320, 320, 320, 320, 320, 320, 321,
- 321, 321, 321, 321, 321, 321, 321, 321, 321, 321,
- 322, 322, 322, 322, 322, 322, 322, 322, 322, 322,
- 322, 323, 323, 323, 323, 323, 323, 323, 323, 323,
- 323, 323, 324, 324, 324, 324, 324, 324, 324, 324,
- 324, 324, 324, 325, 325, 325, 325, 325, 325, 325,
- 325, 325, 325, 325, 326, 326, 326, 326, 326, 326,
- 326, 326, 326, 326, 326, 327, 327, 327, 327, 327,
-
- 327, 327, 327, 327, 327, 327, 328, 328, 328, 328,
- 328, 328, 328, 328, 328, 328, 328, 329, 329, 329,
- 329, 329, 329, 329, 329, 329, 329, 329, 330, 330,
- 330, 330, 330, 330, 330, 330, 330, 330, 330, 331,
- 331, 331, 331, 331, 331, 331, 331, 331, 331, 331,
- 332, 332, 332, 332, 332, 332, 332, 332, 332, 332,
- 332, 333, 0, 0, 333, 334, 334, 334, 334, 334,
- 334, 334, 334, 334, 334, 334, 335, 335, 335, 335,
- 335, 335, 335, 335, 335, 335, 335, 336, 0, 0,
- 336, 337, 337, 0, 337, 337, 337, 337, 337, 0,
-
- 337, 337, 338, 338, 0, 338, 338, 338, 338, 338,
- 338, 338, 338, 339, 339, 0, 339, 339, 339, 339,
- 339, 339, 339, 339, 340, 340, 340, 340, 340, 340,
- 340, 340, 340, 340, 340, 341, 341, 341, 341, 341,
- 341, 341, 341, 341, 341, 341, 342, 0, 0, 342,
- 342, 342, 342, 342, 342, 342, 342, 343, 343, 343,
- 343, 343, 343, 343, 343, 343, 343, 343, 344, 344,
- 0, 344, 344, 344, 344, 344, 344, 0, 344, 345,
- 0, 0, 345, 346, 346, 0, 346, 346, 346, 346,
- 346, 346, 346, 346, 347, 0, 0, 347, 348, 348,
-
- 0, 348, 348, 348, 348, 348, 348, 348, 348, 349,
- 349, 0, 349, 349, 349, 349, 349, 349, 349, 349,
- 350, 350, 0, 350, 350, 350, 350, 350, 0, 350,
- 350, 351, 351, 0, 0, 0, 351, 351, 351, 351,
- 352, 352, 0, 352, 352, 352, 352, 352, 352, 352,
- 352, 353, 0, 0, 353, 354, 354, 354, 354, 354,
- 354, 354, 354, 354, 354, 354, 355, 355, 0, 355,
- 355, 0, 355, 355, 355, 355, 355, 356, 356, 0,
- 356, 356, 0, 356, 356, 356, 356, 356, 357, 357,
- 0, 357, 357, 0, 357, 357, 357, 357, 357, 358,
-
- 358, 0, 0, 358, 358, 358, 0, 358, 358, 358,
- 359, 359, 0, 359, 359, 359, 359, 359, 359, 359,
- 359, 360, 360, 0, 360, 360, 360, 360, 360, 360,
- 0, 360, 361, 0, 0, 361, 362, 0, 0, 362,
- 362, 362, 362, 362, 362, 362, 362, 363, 363, 0,
- 363, 363, 363, 363, 363, 363, 363, 363, 364, 364,
- 364, 364, 364, 364, 364, 364, 364, 364, 364, 365,
- 365, 365, 365, 365, 365, 365, 365, 365, 365, 365,
- 366, 366, 0, 366, 366, 366, 366, 366, 366, 366,
- 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
-
- 367, 368, 368, 0, 368, 368, 368, 368, 368, 368,
- 368, 368, 369, 369, 369, 369, 369, 369, 369, 369,
- 369, 369, 369, 370, 370, 370, 370, 370, 370, 370,
- 370, 370, 370, 370, 371, 371, 371, 371, 371, 371,
- 371, 371, 371, 371, 371, 372, 372, 0, 372, 372,
- 372, 372, 372, 372, 372, 372, 373, 373, 373, 373,
- 373, 373, 373, 373, 373, 373, 373, 374, 374, 374,
- 374, 374, 374, 374, 374, 374, 374, 374, 375, 375,
- 375, 375, 375, 375, 375, 375, 375, 375, 375, 376,
- 376, 376, 376, 376, 376, 376, 376, 376, 376, 376,
-
- 377, 377, 0, 377, 377, 377, 377, 377, 377, 377,
- 377, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
- 316, 316, 316, 316, 316
- } ;
-
- /* the intent behind this definition is that it'll catch
- * any uses of REJECT which flex missed
- */
- #define REJECT reject_used_but_not_detected
- #define yymore() yymore_used_but_not_detected
-
- /* these variables are all declared out here so that section 3 code can
- * manipulate them
- */
- static char *yy_c_buf_p; /* points to current character in buffer */
- static int yy_init = 1; /* whether we need to initialize */
- static int yy_start = 0; /* start state number */
-
- /* true when we've seen an EOF for the current input file */
- static int yy_eof_has_been_seen;
-
- static int yy_n_chars; /* number of characters read into yy_ch_buf */
-
- /* yy_ch_buf has to be 2 characters longer than YY_BUF_SIZE because we need
- * to put in 2 end-of-buffer characters (this is explained where it is
- * done) at the end of yy_ch_buf
- */
- static char yy_ch_buf[YY_BUF_SIZE + 2];
-
- /* yy_hold_char holds the character lost when yytext is formed */
- static char yy_hold_char;
-
- static yy_state_type yy_last_accepting_state;
- static char *yy_last_accepting_cpos;
-
- #ifdef __STDC__
- static yy_state_type yy_get_previous_state( void );
- static int yy_get_next_buffer( void );
- static void yyunput( int c, char *buf_ptr );
- static int input( void );
- static void yyrestart( FILE *input_file );
- #else
- static yy_state_type yy_get_previous_state();
- static int yy_get_next_buffer();
- static void yyunput();
- static int input();
- static void yyrestart();
- #endif
-
- YY_DECL
- {
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
-
-
- static int bracelevel, didadef;
- int i, indented_code, checking_used;
- char nmdef[MAXLINE], myesc();
-
-
- if ( yy_init )
- {
- if ( ! yy_start )
- yy_start = 1; /* first start state */
-
- if ( ! yyin )
- yyin = stdin;
-
- if ( ! yyout )
- yyout = stdout;
-
- new_file:
- /* this is where we enter upon encountering an end-of-file and
- * yywrap() indicating that we should continue processing
- */
-
- /* we put in the '\n' and start reading from [1] so that an
- * initial match-at-newline will be true.
- */
-
- yy_ch_buf[0] = '\n';
- yy_n_chars = 1;
-
- /* we always need two end-of-buffer characters. The first causes
- * a transition to the end-of-buffer state. The second causes
- * a jam in that state.
- */
- yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
- yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
-
- yy_eof_has_been_seen = 0;
-
- yytext = yy_c_buf_p = &yy_ch_buf[1];
- yy_hold_char = *yy_c_buf_p;
- yy_init = 0;
- }
-
- while ( 1 ) /* loops until end-of-file is reached */
- {
- yy_cp = yy_c_buf_p;
-
- /* support of yytext */
- *yy_cp = yy_hold_char;
-
- /* yy_bp points to the position in yy_ch_buf of the start of the
- * current run.
- */
- yy_bp = yy_cp;
-
- yy_current_state = yy_start;
- if ( yy_bp[-1] == '\n' )
- ++yy_current_state;
- do
- {
- register char yy_c = yy_ec[*yy_cp];
- if ( yy_accept[yy_current_state] )
- {
- yy_last_accepting_state = yy_current_state;
- yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = yy_def[yy_current_state];
- if ( yy_current_state >= 317 )
- yy_c = yy_meta[yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- ++yy_cp;
- }
- while ( yy_current_state != 316 );
- yy_cp = yy_last_accepting_cpos;
- yy_current_state = yy_last_accepting_state;
-
- /* bogus while loop to let YY_BACK_TRACK, EOB_ACT_LAST_MATCH,
- * and EOF actions branch here without introducing an optimizer-
- * daunting goto
- */
- while ( 1 )
- {
- yy_act = yy_accept[yy_current_state];
-
- YY_DO_BEFORE_ACTION;
- YY_USER_ACTION;
-
- #ifdef FLEX_DEBUG
- fprintf( stderr, "--accepting rule #%d (\"%s\")\n",
- yy_act, yytext );
- #endif
-
- do_action: /* this label is used only to access EOF actions */
- switch ( yy_act )
- {
- case 0: /* must backtrack */
- /* undo the effects of YY_DO_BEFORE_ACTION */
- *yy_cp = yy_hold_char;
- yy_cp = yy_last_accepting_cpos;
- yy_current_state = yy_last_accepting_state;
- continue; /* go to "YY_DO_BEFORE_ACTION" */
-
- case 1:
- # line 88 "scan.l"
- indented_code = true; BEGIN(CODEBLOCK);
- YY_BREAK
- case 2:
- # line 89 "scan.l"
- ++linenum; ECHO; /* treat as a comment */
- YY_BREAK
- case 3:
- # line 90 "scan.l"
- ECHO; BEGIN(C_COMMENT);
- YY_BREAK
- case 4:
- # line 91 "scan.l"
- return ( SCDECL );
- YY_BREAK
- case 5:
- # line 92 "scan.l"
- return ( XSCDECL );
- YY_BREAK
- case 6:
- # line 93 "scan.l"
- {
- ++linenum;
- line_directive_out( stdout );
- indented_code = false;
- BEGIN(CODEBLOCK);
- }
- YY_BREAK
- case 7:
- # line 100 "scan.l"
- return ( WHITESPACE );
- YY_BREAK
- case 8:
- # line 102 "scan.l"
- {
- sectnum = 2;
- line_directive_out( stdout );
- BEGIN(SECT2PROLOG);
- return ( SECTEND );
- }
- YY_BREAK
- case 9:
- # line 109 "scan.l"
- checking_used = REALLY_USED; BEGIN(USED_LIST);
- YY_BREAK
- case 10:
- # line 110 "scan.l"
- checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
- YY_BREAK
- case 11:
- # line 113 "scan.l"
- {
- fprintf( stderr,
- "old-style lex command at line %d ignored:\n\t%s",
- linenum, yytext );
- ++linenum;
- }
- YY_BREAK
- case 12:
- # line 120 "scan.l"
- {
- (void) strcpy( nmstr, yytext );
- didadef = false;
- BEGIN(PICKUPDEF);
- }
- YY_BREAK
- case 13:
- # line 126 "scan.l"
- RETURNNAME;
- YY_BREAK
- case 14:
- # line 127 "scan.l"
- ++linenum; /* allows blank lines in section 1 */
- YY_BREAK
- case 15:
- # line 128 "scan.l"
- ++linenum; return ( '\n' );
- YY_BREAK
- case 16:
- # line 129 "scan.l"
- synerr( "illegal character" ); BEGIN(RECOVER);
- YY_BREAK
- case 17:
- # line 132 "scan.l"
- ECHO; BEGIN(0);
- YY_BREAK
- case 18:
- # line 133 "scan.l"
- ++linenum; ECHO; BEGIN(0);
- YY_BREAK
- case 19:
- # line 134 "scan.l"
- ECHO;
- YY_BREAK
- case 20:
- # line 135 "scan.l"
- ECHO;
- YY_BREAK
- case 21:
- # line 136 "scan.l"
- ++linenum; ECHO;
- YY_BREAK
- case 22:
- # line 139 "scan.l"
- ++linenum; BEGIN(0);
- YY_BREAK
- case 23:
- # line 140 "scan.l"
- ECHO; CHECK_REJECT(yytext);
- YY_BREAK
- case 24:
- # line 141 "scan.l"
- ECHO; CHECK_YYMORE(yytext);
- YY_BREAK
- case 25:
- # line 142 "scan.l"
- ECHO;
- YY_BREAK
- case 26:
- # line 143 "scan.l"
- {
- ++linenum;
- ECHO;
- if ( indented_code )
- BEGIN(0);
- }
- YY_BREAK
- case 27:
- # line 151 "scan.l"
- /* separates name and definition */
- YY_BREAK
- case 28:
- # line 153 "scan.l"
- {
- (void) strcpy( nmdef, yytext );
-
- for ( i = strlen( nmdef ) - 1;
- i >= 0 &&
- nmdef[i] == ' ' || nmdef[i] == '\t';
- --i )
- ;
-
- nmdef[i + 1] = '\0';
-
- ndinstal( nmstr, nmdef );
- didadef = true;
- }
- YY_BREAK
- case 29:
- # line 168 "scan.l"
- {
- if ( ! didadef )
- synerr( "incomplete name definition" );
- BEGIN(0);
- ++linenum;
- }
- YY_BREAK
- case 30:
- # line 175 "scan.l"
- ++linenum; BEGIN(0); RETURNNAME;
- YY_BREAK
- case 31:
- # line 178 "scan.l"
- ++linenum; BEGIN(0);
- YY_BREAK
- case 32:
- # line 179 "scan.l"
-
- YY_BREAK
- case 33:
- # line 180 "scan.l"
- {
- if ( all_upper( yytext ) )
- reject_really_used = checking_used;
- else
- synerr( "unrecognized %used/%unused construct" );
- }
- YY_BREAK
- case 34:
- # line 186 "scan.l"
- {
- if ( all_lower( yytext ) )
- yymore_really_used = checking_used;
- else
- synerr( "unrecognized %used/%unused construct" );
- }
- YY_BREAK
- case 35:
- # line 192 "scan.l"
- synerr( "unrecognized %used/%unused construct" );
- YY_BREAK
- case 36:
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
- yy_c_buf_p = yy_cp -= 1;
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- # line 195 "scan.l"
- {
- ++linenum;
- ACTION_ECHO;
- MARK_END_OF_PROLOG;
- BEGIN(SECT2);
- }
- YY_BREAK
- case 37:
- # line 202 "scan.l"
- ++linenum; ACTION_ECHO;
- YY_BREAK
- case YY_STATE_EOF(SECT2PROLOG):
- # line 204 "scan.l"
- MARK_END_OF_PROLOG; yyterminate();
- YY_BREAK
- case 39:
- # line 206 "scan.l"
- ++linenum; /* allow blank lines in section 2 */
- YY_BREAK
- /* this horrible mess of a rule matches indented lines which
- * do not contain "/*". We need to make the distinction because
- * otherwise this rule will be taken instead of the rule which
- * matches the beginning of comments like this one
- */
- case 40:
- # line 213 "scan.l"
- {
- synerr( "indented code found outside of action" );
- ++linenum;
- }
- YY_BREAK
- case 41:
- # line 218 "scan.l"
- BEGIN(SC); return ( '<' );
- YY_BREAK
- case 42:
- # line 219 "scan.l"
- return ( '^' );
- YY_BREAK
- case 43:
- # line 220 "scan.l"
- BEGIN(QUOTE); return ( '"' );
- YY_BREAK
- case 44:
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
- yy_c_buf_p = yy_cp = yy_bp + 1;
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- # line 221 "scan.l"
- BEGIN(NUM); return ( '{' );
- YY_BREAK
- case 45:
- # line 222 "scan.l"
- BEGIN(BRACEERROR);
- YY_BREAK
- case 46:
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
- yy_c_buf_p = yy_cp = yy_bp + 1;
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- # line 223 "scan.l"
- return ( '$' );
- YY_BREAK
- case 47:
- # line 225 "scan.l"
- {
- bracelevel = 1;
- BEGIN(PERCENT_BRACE_ACTION);
- return ( '\n' );
- }
- YY_BREAK
- case 48:
- # line 230 "scan.l"
- continued_action = true; ++linenum; return ( '\n' );
- YY_BREAK
- case 49:
- # line 232 "scan.l"
- ACTION_ECHO; BEGIN(C_COMMENT_2);
- YY_BREAK
- case 50:
- # line 234 "scan.l"
- {
- /* this rule is separate from the one below because
- * otherwise we get variable trailing context, so
- * we can't build the scanner using -{f,F}
- */
- bracelevel = 0;
- continued_action = false;
- BEGIN(ACTION);
- return ( '\n' );
- }
- YY_BREAK
- case 51:
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
- yy_c_buf_p = yy_cp -= 1;
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- # line 245 "scan.l"
- {
- bracelevel = 0;
- continued_action = false;
- BEGIN(ACTION);
- return ( '\n' );
- }
- YY_BREAK
- case 52:
- # line 252 "scan.l"
- ++linenum; return ( '\n' );
- YY_BREAK
- case 53:
- # line 254 "scan.l"
- return ( EOF_OP );
- YY_BREAK
- case 54:
- # line 256 "scan.l"
- {
- sectnum = 3;
- BEGIN(SECT3);
- return ( EOF ); /* to stop the parser */
- }
- YY_BREAK
- case 55:
- # line 262 "scan.l"
- {
- int cclval;
-
- (void) strcpy( nmstr, yytext );
-
- /* check to see if we've already encountered this ccl */
- if ( (cclval = ccllookup( nmstr )) )
- {
- yylval = cclval;
- ++cclreuse;
- return ( PREVCCL );
- }
- else
- {
- /* we fudge a bit. We know that this ccl will
- * soon be numbered as lastccl + 1 by cclinit
- */
- cclinstal( nmstr, lastccl + 1 );
-
- /* push back everything but the leading bracket
- * so the ccl can be rescanned
- */
- PUT_BACK_STRING(nmstr, 1);
-
- BEGIN(FIRSTCCL);
- return ( '[' );
- }
- }
- YY_BREAK
- case 56:
- # line 291 "scan.l"
- {
- register char *nmdefptr;
- char *ndlookup();
-
- (void) strcpy( nmstr, yytext );
- nmstr[yyleng - 1] = '\0'; /* chop trailing brace */
-
- /* lookup from "nmstr + 1" to chop leading brace */
- if ( ! (nmdefptr = ndlookup( nmstr + 1 )) )
- synerr( "undefined {name}" );
-
- else
- { /* push back name surrounded by ()'s */
- unput(')');
- PUT_BACK_STRING(nmdefptr, 0);
- unput('(');
- }
- }
- YY_BREAK
- case 57:
- # line 310 "scan.l"
- return ( yytext[0] );
- YY_BREAK
- case 58:
- # line 311 "scan.l"
- RETURNCHAR;
- YY_BREAK
- case 59:
- # line 312 "scan.l"
- ++linenum; return ( '\n' );
- YY_BREAK
- case 60:
- # line 315 "scan.l"
- return ( ',' );
- YY_BREAK
- case 61:
- # line 316 "scan.l"
- BEGIN(SECT2); return ( '>' );
- YY_BREAK
- case 62:
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
- yy_c_buf_p = yy_cp = yy_bp + 1;
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- # line 317 "scan.l"
- BEGIN(CARETISBOL); return ( '>' );
- YY_BREAK
- case 63:
- # line 318 "scan.l"
- RETURNNAME;
- YY_BREAK
- case 64:
- # line 319 "scan.l"
- synerr( "bad start condition name" );
- YY_BREAK
- case 65:
- # line 321 "scan.l"
- BEGIN(SECT2); return ( '^' );
- YY_BREAK
- case 66:
- # line 324 "scan.l"
- RETURNCHAR;
- YY_BREAK
- case 67:
- # line 325 "scan.l"
- BEGIN(SECT2); return ( '"' );
- YY_BREAK
- case 68:
- # line 327 "scan.l"
- {
- synerr( "missing quote" );
- BEGIN(SECT2);
- ++linenum;
- return ( '"' );
- }
- YY_BREAK
- case 69:
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
- yy_c_buf_p = yy_cp = yy_bp + 1;
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- # line 335 "scan.l"
- BEGIN(CCL); return ( '^' );
- YY_BREAK
- case 70:
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
- yy_c_buf_p = yy_cp = yy_bp + 1;
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- # line 336 "scan.l"
- return ( '^' );
- YY_BREAK
- case 71:
- # line 337 "scan.l"
- BEGIN(CCL); yylval = '-'; return ( CHAR );
- YY_BREAK
- case 72:
- # line 338 "scan.l"
- BEGIN(CCL); RETURNCHAR;
- YY_BREAK
- case 73:
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
- yy_c_buf_p = yy_cp = yy_bp + 1;
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- # line 340 "scan.l"
- return ( '-' );
- YY_BREAK
- case 74:
- # line 341 "scan.l"
- RETURNCHAR;
- YY_BREAK
- case 75:
- # line 342 "scan.l"
- BEGIN(SECT2); return ( ']' );
- YY_BREAK
- case 76:
- # line 345 "scan.l"
- {
- yylval = myctoi( yytext );
- return ( NUMBER );
- }
- YY_BREAK
- case 77:
- # line 350 "scan.l"
- return ( ',' );
- YY_BREAK
- case 78:
- # line 351 "scan.l"
- BEGIN(SECT2); return ( '}' );
- YY_BREAK
- case 79:
- # line 353 "scan.l"
- {
- synerr( "bad character inside {}'s" );
- BEGIN(SECT2);
- return ( '}' );
- }
- YY_BREAK
- case 80:
- # line 359 "scan.l"
- {
- synerr( "missing }" );
- BEGIN(SECT2);
- ++linenum;
- return ( '}' );
- }
- YY_BREAK
- case 81:
- # line 367 "scan.l"
- synerr( "bad name in {}'s" ); BEGIN(SECT2);
- YY_BREAK
- case 82:
- # line 368 "scan.l"
- synerr( "missing }" ); ++linenum; BEGIN(SECT2);
- YY_BREAK
- case 83:
- # line 371 "scan.l"
- bracelevel = 0;
- YY_BREAK
- case 84:
- # line 372 "scan.l"
- ACTION_ECHO; CHECK_REJECT(yytext);
- YY_BREAK
- case 85:
- # line 373 "scan.l"
- ACTION_ECHO; CHECK_YYMORE(yytext);
- YY_BREAK
- case 86:
- # line 374 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 87:
- # line 375 "scan.l"
- {
- ++linenum;
- ACTION_ECHO;
- if ( bracelevel == 0 )
- {
- fputs( "\tYY_BREAK\n", temp_action_file );
- BEGIN(SECT2);
- }
- }
- YY_BREAK
- /* REJECT and yymore() are checked for above, in PERCENT_BRACE_ACTION */
- case 88:
- # line 386 "scan.l"
- ACTION_ECHO; ++bracelevel;
- YY_BREAK
- case 89:
- # line 387 "scan.l"
- ACTION_ECHO; --bracelevel;
- YY_BREAK
- case 90:
- # line 388 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 91:
- # line 389 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 92:
- # line 390 "scan.l"
- ACTION_ECHO; BEGIN(ACTION_COMMENT);
- YY_BREAK
- case 93:
- # line 391 "scan.l"
- ACTION_ECHO; /* character constant */
- YY_BREAK
- case 94:
- # line 392 "scan.l"
- ACTION_ECHO; BEGIN(ACTION_STRING);
- YY_BREAK
- case 95:
- # line 393 "scan.l"
- {
- ++linenum;
- ACTION_ECHO;
- if ( bracelevel == 0 )
- {
- fputs( "\tYY_BREAK\n", temp_action_file );
- BEGIN(SECT2);
- }
- }
- YY_BREAK
- case 96:
- # line 402 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 97:
- # line 404 "scan.l"
- ACTION_ECHO; BEGIN(ACTION);
- YY_BREAK
- case 98:
- # line 405 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 99:
- # line 406 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 100:
- # line 407 "scan.l"
- ++linenum; ACTION_ECHO;
- YY_BREAK
- case 101:
- # line 408 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 102:
- # line 410 "scan.l"
- ACTION_ECHO; BEGIN(SECT2);
- YY_BREAK
- case 103:
- # line 411 "scan.l"
- ++linenum; ACTION_ECHO; BEGIN(SECT2);
- YY_BREAK
- case 104:
- # line 412 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 105:
- # line 413 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 106:
- # line 414 "scan.l"
- ++linenum; ACTION_ECHO;
- YY_BREAK
- case 107:
- # line 416 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 108:
- # line 417 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 109:
- # line 418 "scan.l"
- ++linenum; ACTION_ECHO;
- YY_BREAK
- case 110:
- # line 419 "scan.l"
- ACTION_ECHO; BEGIN(ACTION);
- YY_BREAK
- case 111:
- # line 420 "scan.l"
- ACTION_ECHO;
- YY_BREAK
- case 112:
- # line 423 "scan.l"
- {
- yylval = myesc( yytext );
- return ( CHAR );
- }
- YY_BREAK
- case 113:
- # line 428 "scan.l"
- {
- yylval = myesc( yytext );
- BEGIN(CCL);
- return ( CHAR );
- }
- YY_BREAK
- case 114:
- # line 435 "scan.l"
- ECHO;
- YY_BREAK
- case 115:
- # line 436 "scan.l"
- ECHO;
- YY_BREAK
- case YY_STATE_EOF(INITIAL):
- case YY_STATE_EOF(SECT2):
- case YY_STATE_EOF(SECT3):
- case YY_STATE_EOF(CODEBLOCK):
- case YY_STATE_EOF(PICKUPDEF):
- case YY_STATE_EOF(SC):
- case YY_STATE_EOF(CARETISBOL):
- case YY_STATE_EOF(NUM):
- case YY_STATE_EOF(QUOTE):
- case YY_STATE_EOF(FIRSTCCL):
- case YY_STATE_EOF(CCL):
- case YY_STATE_EOF(ACTION):
- case YY_STATE_EOF(RECOVER):
- case YY_STATE_EOF(BRACEERROR):
- case YY_STATE_EOF(C_COMMENT):
- case YY_STATE_EOF(C_COMMENT_2):
- case YY_STATE_EOF(ACTION_COMMENT):
- case YY_STATE_EOF(ACTION_STRING):
- case YY_STATE_EOF(PERCENT_BRACE_ACTION):
- case YY_STATE_EOF(USED_LIST):
- yyterminate();
-
- case YY_END_OF_BUFFER:
- /* undo the effects of YY_DO_BEFORE_ACTION */
- *yy_cp = yy_hold_char;
-
- yytext = yy_bp;
-
- switch ( yy_get_next_buffer() )
- {
- case EOB_ACT_END_OF_FILE:
- {
- if ( yywrap() )
- {
- /* note: because we've taken care in
- * yy_get_next_buffer() to have set up yytext,
- * we can now set up yy_c_buf_p so that if some
- * total hoser (like flex itself) wants
- * to call the scanner after we return the
- * YY_NULL, it'll still work - another YY_NULL
- * will get returned.
- */
- yy_c_buf_p = yytext;
-
- yy_act = YY_STATE_EOF((yy_start - 1) / 2);
- goto do_action;
- }
-
- else
- YY_NEW_FILE;
- }
- break;
-
- case EOB_ACT_RESTART_SCAN:
- yy_c_buf_p = yytext;
- yy_hold_char = *yy_c_buf_p;
- break;
-
- case EOB_ACT_LAST_MATCH:
- yy_c_buf_p = &yy_ch_buf[yy_n_chars];
-
- yy_current_state = yy_get_previous_state();
-
- yy_cp = yy_c_buf_p;
- yy_bp = yytext;
- continue; /* go to "YY_DO_BEFORE_ACTION" */
- }
- break;
-
- default:
- printf( "action # %d\n", yy_act );
- YY_FATAL_ERROR( "fatal flex scanner internal error" );
- }
-
- break; /* exit bogus while loop */
- }
- }
- }
-
-
- /* yy_get_next_buffer - try to read in new buffer
- *
- * synopsis
- * int yy_get_next_buffer();
- *
- * returns a code representing an action
- * EOB_ACT_LAST_MATCH -
- * EOB_ACT_RESTART_SCAN - restart the scanner
- * EOB_ACT_END_OF_FILE - end of file
- */
-
- static int yy_get_next_buffer()
-
- {
- register char *dest = yy_ch_buf;
- register char *source = yytext - 1; /* copy prev. char, too */
- register int number_to_move, i;
- int ret_val;
-
- if ( yy_c_buf_p != &yy_ch_buf[yy_n_chars + 1] )
- {
- YY_FATAL_ERROR( "NULL in input" );
- /*NOTREACHED*/
- }
-
- /* try to read more data */
-
- /* first move last chars to start of buffer */
- number_to_move = yy_c_buf_p - yytext;
-
- for ( i = 0; i < number_to_move; ++i )
- *(dest++) = *(source++);
-
- if ( yy_eof_has_been_seen )
- /* don't do the read, it's not guaranteed to return an EOF,
- * just force an EOF
- */
- yy_n_chars = 0;
-
- else
- {
- int num_to_read = YY_BUF_SIZE - number_to_move - 1;
-
- if ( num_to_read > YY_READ_BUF_SIZE )
- num_to_read = YY_READ_BUF_SIZE;
-
- /* read in more data */
- YY_INPUT( (&yy_ch_buf[number_to_move]), yy_n_chars, num_to_read );
- }
-
- if ( yy_n_chars == 0 )
- {
- if ( number_to_move == 1 )
- ret_val = EOB_ACT_END_OF_FILE;
- else
- ret_val = EOB_ACT_LAST_MATCH;
-
- yy_eof_has_been_seen = 1;
- }
-
- else
- ret_val = EOB_ACT_RESTART_SCAN;
-
- yy_n_chars += number_to_move;
- yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
- yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
-
- /* yytext begins at the second character in
- * yy_ch_buf; the first character is the one which
- * preceded it before reading in the latest buffer;
- * it needs to be kept around in case it's a
- * newline, so yy_get_previous_state() will have
- * with '^' rules active
- */
-
- yytext = &yy_ch_buf[1];
-
- return ( ret_val );
- }
-
-
- /* yy_get_previous_state - get the state just before the EOB char was reached
- *
- * synopsis
- * yy_state_type yy_get_previous_state();
- */
-
- static yy_state_type yy_get_previous_state()
-
- {
- register yy_state_type yy_current_state;
- register char *yy_cp;
-
- register char *yy_bp = yytext;
-
- yy_current_state = yy_start;
- if ( yy_bp[-1] == '\n' )
- ++yy_current_state;
-
- for ( yy_cp = yytext; yy_cp < yy_c_buf_p; ++yy_cp )
- {
- register char yy_c = yy_ec[*yy_cp];
- if ( yy_accept[yy_current_state] )
- {
- yy_last_accepting_state = yy_current_state;
- yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = yy_def[yy_current_state];
- if ( yy_current_state >= 317 )
- yy_c = yy_meta[yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- }
-
- return ( yy_current_state );
- }
-
-
- #ifdef __STDC__
- static void yyunput( int c, register char *yy_bp )
- #else
- static void yyunput( c, yy_bp )
- int c;
- register char *yy_bp;
- #endif
-
- {
- register char *yy_cp = yy_c_buf_p;
-
- *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
-
- if ( yy_cp < yy_ch_buf + 2 )
- { /* need to shift things up to make room */
- register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
- register char *dest = &yy_ch_buf[YY_BUF_SIZE + 2];
- register char *source = &yy_ch_buf[number_to_move];
-
- while ( source > yy_ch_buf )
- *--dest = *--source;
-
- yy_cp += dest - source;
- yy_bp += dest - source;
-
- if ( yy_cp < yy_ch_buf + 2 )
- YY_FATAL_ERROR( "flex scanner push-back overflow" );
- }
-
- if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
- yy_cp[-2] = '\n';
-
- *--yy_cp = c;
-
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- }
-
-
- static int input()
-
- {
- int c;
- char *yy_cp = yy_c_buf_p;
-
- *yy_cp = yy_hold_char;
-
- if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
- { /* need more input */
- yytext = yy_c_buf_p;
- ++yy_c_buf_p;
-
- switch ( yy_get_next_buffer() )
- {
- /* this code, unfortunately, is somewhat redundant with
- * that above
- */
- case EOB_ACT_END_OF_FILE:
- {
- if ( yywrap() )
- {
- yy_c_buf_p = yytext;
- return ( EOF );
- }
-
- yy_ch_buf[0] = '\n';
- yy_n_chars = 1;
- yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
- yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
- yy_eof_has_been_seen = 0;
- yytext = yy_c_buf_p = &yy_ch_buf[1];
- yy_hold_char = *yy_c_buf_p;
-
- return ( input() );
- }
- break;
-
- case EOB_ACT_RESTART_SCAN:
- yy_c_buf_p = yytext;
- break;
-
- case EOB_ACT_LAST_MATCH:
- YY_FATAL_ERROR( "unexpected last match in input()" );
- }
- }
-
- c = *yy_c_buf_p;
- yy_hold_char = *++yy_c_buf_p;
-
- return ( c );
- }
-
-
- #ifdef __STDC__
- static void yyrestart( FILE *input_file )
- #else
- static void yyrestart( input_file )
- FILE *input_file;
- #endif
-
- {
- if ( yyin != stdin )
- fclose( yyin );
-
- yyin = input_file;
- yy_init = 1;
- }
- # line 436 "scan.l"
-
-
-
-
-